package pers.wensheng.patterns.behavioral_pattern.state_pattern.before;

/**
 * 电梯接口
 */
public interface ILift {
    //电梯的4个状态
    //开门状态
    public final static int OPENING_STATE = 1;
    //关门状态
    public final static int CLOSING_STATE = 2;
    //运行状态
    public final static int RUNNING_STATE = 3;
    //停止状态
    public final static int STOPPING_STATE = 4;

    /**
     * 设置电梯状态的功能
     */
    void setState(int state);

    /**
     * 电梯操作功能
     */
    void open();

    void close();

    void run();

    void stop();
}
